﻿using System.Web.Mvc;
using System.Web.Routing;

namespace doufu.WebUI
{
    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                "Home", // Route name
                "{controller}/{action}", // URL with parameters
                new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
            );

            routes.MapRoute(
                "Default", // Route name
                "{controller}/{action}/{id}.aspx", // URL with parameters
                new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
            );


            //routes.MapRoute(
            //    "Story", // Route name
            //    "{controller}/{page}", // URL with parameters
            //    new { controller = "Home", action = "Index", page = UrlParameter.Optional } // Parameter defaults
            //);

        }
    }
}